package com.revenco.bi.util;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;

import org.nutz.json.Json;
import org.nutz.lang.Lang;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


public class test {
	
    

    public static void main(String args[]) throws Exception{
    	String ss="column_1>column_2>column_4";
    	String s2="T19.VEST_LVL1_CD>T19.VEST_LVL2_CD>T19.VEST_LVL3_CD";
    	String[] ss2=splitStr(ss,">");
    	String[] s22=splitStr(s2,">");
    	for(int i=0;i<ss2.length;i++){
    		System.out.println("S11  "+ss2[i]);
    		System.out.println("S22  "+s22[i]);
    	}
    }
    /**
	 * 分割
	 */
	public static String[] splitStr(String str,String regx){
		String[] splitStr=str.split(regx);
		for(int i=0;i<splitStr.length;i++){
			String[] removeAlias=splitStr[i].split("[.]");
			splitStr[i]=removeAlias[removeAlias.length-1];
			
		}
		return splitStr;
	}
    
    }
